package service;

import java.util.HashMap;
import java.util.Map;

public class StrategyFactory {

    private static Map<Integer,Strategy> map;

    public static void init(){
        map = new HashMap<>();
        map.put(1,new NoDisStrategy());
        map.put(2,new FlatRateStrategy());
    }

    public static Strategy getConcretStrategy(int type){
        return map.get(type);
    }
}
